from django.urls import path
# 导入当前的views
from spiderweb import views as spider_views

urlpatterns = [
    # 爬虫模块的首页
    path('weather/', spider_views.spider_weather, name="spider_weather"),
    # 爬取天气信息
    path('weather/start/', spider_views.start_spider, name="start_spider_weather"),
    # 获取爬取天气的日志
    path('weather/log/', spider_views.get_spider_weather_log, name="spider_weather_log"),
]